<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
	function animate() {
                $("#mover").slideToggle("slow", animate); //slow滑动的速度
            };

	$(function(){
		$("#btn").click(function(){
			if($(".div1 li:hidden").length==0)
			{
				//$(".div1 li:gt(5):lt(7)").css("display","none");
				$(".div1 li:gt(5):lt(7)").slideToggle("middle");
				$("#btn").val("  显示全部品牌").css("backgroundImage","url(down.gif)");
			}
			else
			{
				//$(".div1 li:hidden").css("display","inline");
				$(".div1 li:hidden").slideToggle("middle");
				$("#btn").val("  精简显示品牌").css("backgroundImage","url(up.gif)");
			}
		});
		
		
	});
</script>
<style type="text/css">
	*
	{
		font-size:12px;	
	}
	a
	{
		color:#2956AC;
		text-decoration:none;
	}
	a:hover
	{
		color:#ff7000;
		text-decoration:underline;
	}
	.div1
	{
		width:1000px;
		padding:0px;
		margin:0px;
	}
	.div1 ul
	{
		list-style:none;
	}
	.div1 ul li
	{
		display:inline;
		padding-left:120px;
		float:left;
		width:150px;
		text-align:left;
	}
</style>
</head>

<body>
	<center>
	<div style="width:1000px;" align="center">
        <div class="div1" align="center">
            <ul>
                <li><a href="#">佳能</a>(30440)</li>
                <li><a href="#">索尼</a>(27220)</li>
                <li><a href="#">三星</a>(20808)</li>
            </ul>
            <ul>
                <li><a href="#">尼康</a>(17821)</li>
                <li><a href="#">松下</a>(12289)</li>
                <li><a href="#">卡西欧</a>(8242)</li>
            </ul>
            <ul>
                <li><a href="#">富士</a>(14894)</li>
                <li><a href="#">柯达</a>(9520)</li>
                <li><a href="#">宾得</a>(2195)</li>
            </ul>
            <ul>
                <li><a href="#">理光</a>(4114)</li>
                <li><a href="#">奥林巴斯</a>(12205)</li>
                <li><a href="#">明基</a>(1466)</li>
            </ul>
            <ul>
                <li><a href="#">爱国者</a>(3091)</li>
                <li><a href="#">其他品牌相机</a>(7275)</li>
            </ul>
        </div>
        <div align="left" style="margin-top:10px; width:580px; float:left; padding-left:420px;">
        <input type="button" value="  精简显示品牌" id="btn" style="border:1px #cccccc solid; background-color:white; background-image:url(up.gif); background-repeat:no-repeat; background-position:left; height:25px;"/></div>
    </div>
    </center>
</body>
</html>
